package com.enjoyiot.module.eiot.convert;

import com.enjoyiot.framework.common.pojo.PageResult;
import com.enjoyiot.module.eiot.api.device.dto.DeviceGroup;
import com.enjoyiot.module.eiot.dal.dataobject.GroupDO;
import org.mapstruct.Builder;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @Description: 设备信息
 */
@Mapper(builder = @Builder(disableBuilder = true))
public interface DeviceGroupConvert {

    DeviceGroupConvert INSTANCE = Mappers.getMapper(DeviceGroupConvert.class);
    DeviceGroup convert(GroupDO ylDeviceInfoDO);
    PageResult<DeviceGroup> convertPage(PageResult<GroupDO> selectPage);
    GroupDO convertDo(DeviceGroup g);
}
